<template>
    <div class="userCenter">
        <div class="breadcrumb-box">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                <el-breadcrumb-item>个人中心</el-breadcrumb-item>
                <el-breadcrumb-item>设置</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="center container td-f">
            <left-nav-bar :active="active"></left-nav-bar>
            <div class="right">
                <div class="line-ti">
                    <div>关于我们</div>
                </div>
                <div class="list-help">
                    <div class="desc">
                        <div v-html="content">
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="height: 200px"></div>
    </div>
</template>

<script>
import leftNavBar from "@components/leftNavBar";
import { getUser, getMyMessage, searchQuota } from "@api/user";
import {systemArticle} from '@api/public'
export default {
    name: "userCenter",
    data() {
        return {
            loading: false,
            active: 9,
            userInfo: {},
            messageList: [],
            quotaInfo: "",
            orderStatusNum: {},
            dialogImageUrl: "",
            content:"",
            dialogVisible: false,
        };
    },
    components: {
        leftNavBar,
    },
    methods: {
        // 获取关于我们
        User() {
            let that = this;
            systemArticle().then((res) => {
                let data = res.data;
                data.map((item,index)=>{
                    if(item.title == "关于我们"){
                        that.content = item.content;
                    }
                })
            });
        },
    },
    mounted() {
        this.User();
    },
};
</script>
<style >
.el-upload--picture-card {
    width: 88px;
    height: 88px;
    line-height: 88px;
}
.el-upload-list--picture-card .el-upload-list__item {
    width: 88px;
    height: 88px;
}
</style>
<style scoped  rel="stylesheet/scss" lang="scss" scoped>
$color: #da213d;
.userCenter {
    width: 100%;
    height: 100%;

    .center {
        /*width: 70%;*/
        margin: 0 auto;
        display: flex;

        .right {
            width: 1000px;
            margin-left: 32px;
            /*margin-top: 90px;*/
            .line-ti {
                width: 100%;
                border-bottom: 1px solid #dbdbdb;

                > div {
                    color: #da213d;
                    font-size: 18px;
                    font-family: MicrosoftYaHei-Bold;
                    border-bottom: 3px solid $color;
                    width: 72px;
                    line-height: 36px;
                    font-weight: 600;
                }
            }

            .list-help {
                // margin-top: 32px;
                .tit {
                    font-size: 24px;
                    font-weight: bold;
                    color: #333333;
                }
                .desc {
                    font-size: 16px;
                    color: #666666;
                    // line-height: 40px;
                }
                .helps {
                    a {
                        margin-top: 10px;
                        width: 430px;
                        height: 50px;
                        border-radius: 8px;
                        border: 1px solid #efc2c1;
                        display: flex;
                        align-items: center;
                        div {
                            font-size: 15px;
                            color: #333333;
                        }
                        img {
                            width: 18px;
                            height: 18px;
                            margin-right: 20px;
                            margin-left: 20px;
                        }
                    }
                }
            }
        }
    }
}
</style>
